package query

import (
	"ssadmin/common/query"
)

type SysDictTypeGetPageReq struct {
	query.Pagination `search:"-"`
	DictId           []int  `form:"dictId" search:"type:in;column:dict_id;table:sys_dict_type"`
	DictName         string `form:"dictName" search:"type:icontains;column:dict_name;table:sys_dict_type"`
	DictType         string `form:"dictType" search:"type:icontains;column:dict_type;table:sys_dict_type"`
	Status           int    `form:"status" search:"type:exact;column:status;table:sys_dict_type"`
}

type SysDictTypeOrder struct {
	DictIdOrder string `search:"type:order;column:dict_id;table:sys_dict_type" form:"dictIdOrder"`
}

func (m *SysDictTypeGetPageReq) GetNeedSearch() interface{} {
	return *m
}

type SysDictTypeGetReq struct {
	Id int `uri:"id"`
}

func (s *SysDictTypeGetReq) GetId() interface{} {
	return s.Id
}
